package cn.wolfcode.luowowo.hotel.mapper;

import cn.wolfcode.luowowo.hotel.domain.HotelRoomType;
import cn.wolfcode.luowowo.hotel.query.HotelQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HotelRoomTypeMapper {
    int deleteByPrimaryKey(Long hotelId);

    int insert(HotelRoomType record);

    List<HotelRoomType> selectByPrimaryKey(Long hotelId);

    List<HotelRoomType> selectAll();

    int updateByPrimaryKey(HotelRoomType record);

    /**
     * 查询酒店的房间数
     *
     * @param qo
     * @return
     */
    List<HotelRoomType> selectByHotelId(HotelQueryObject qo);

    HotelRoomType findByHotelIdAndType(@Param("hotelId") Long hotelId, @Param("type") int type);
}